package com.qingmi.farmer.ui.order.goods;

import com.qingmi.farmer.R;
import com.qingmi.farmer.databinding.FragmentGoodsOrderBinding;
import com.wjjun.base.ui.base.TabFragment;

/**
 * 生资订单
 * Created by 67535 on 2018/4/28.
 */

public class GoodsOrderFragment extends TabFragment<GoodsOrderViewModel, FragmentGoodsOrderBinding> {

    private GoodsOrderPendingCheckFragment goodsOrderPendingCheckFragment;
    private GoodsOrderPendingConfirmFragment goodsOrderPendingConfirmFragment;
    private GoodsOrderConfirmedFragment goodsOrderConfirmedFragment;


    @Override
    public int getLayoutId() {
        return R.layout.fragment_goods_order;
    }

    @Override
    protected GoodsOrderViewModel initViewModel() {
        return new GoodsOrderViewModel();
    }

    @Override
    public void initFragment() {
        goodsOrderPendingCheckFragment = new GoodsOrderPendingCheckFragment();
        goodsOrderPendingConfirmFragment = new GoodsOrderPendingConfirmFragment();
        goodsOrderConfirmedFragment = new GoodsOrderConfirmedFragment();

        addTab(getString(R.string.txt_pending_check), goodsOrderPendingCheckFragment);
        addTab(getString(R.string.txt_pending_confirm), goodsOrderPendingConfirmFragment);
        addTab(getString(R.string.txt_confirmed), goodsOrderConfirmedFragment);
    }


}
